home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / yelp.postrm < prev    next >
Encoding:
Text File  |  2007-04-10  |  1.4 KB  |  39 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installmenu
  4. if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
  5. # End automatically added section
  6. # Automatically added by dh_gconf
  7. if [ "$1" = purge ]; then
  8.     OLD_DIR=/etc/gconf/schemas
  9.     SCHEMA_FILES="yelp.schemas "
  10.     if [ -d $OLD_DIR ]; then
  11.         for SCHEMA in $SCHEMA_FILES; do
  12.             rm -f $OLD_DIR/$SCHEMA
  13.         done
  14.         rmdir -p --ignore-fail-on-non-empty $OLD_DIR
  15.     fi
  16. fi
  17. # End automatically added section
  18. # Automatically added by dh_desktop
  19. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  20.     update-desktop-database -q
  21. fi
  22. # End automatically added section
  23. # Automatically added by dh_iconcache
  24. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  25. if [ "$1" = "remove" ] && \
  26.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  27.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  28.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  29.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  30.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  31.         # it's not important enough
  32.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  33.     else
  34.         # if the icon theme directory has no subdirs, we can remove the cache
  35.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  36.     fi
  37. fi
  38. # End automatically added section
  39.